function stsimpath(stdir)

% STSIMPATH add the stochastic simulation directories to the path.
% Alternatively, you may add to your startup.m:
%  addpath('path_to_stsim\bbm', ...
%          'path_to_stsim\counting', ...
%          'path_to_stsim\ranvar', ...
%          'path_to_stsim\rtree, ...
%          'path_to_stsim\service', ...
%          'path_to_stsim\stproc', ...
%          'path_to_stsim\teletraffic', ...
%          'path_to_stsim\waxman');
%  
%  stsimpath([stdir])
%
% Input: 
%      stdir - optional; path to the main directory with
%        stochastic simulation files. Default - current directory.

% Authors: R.Gaigalas, I.Kaj
% v1.0 17-Dec-05

  if nargin<1
    stdir = pwd;
  end

 addpath([stdir '\bbm'], [stdir '\counting'], ...
         [stdir '\ranvar'], [stdir '\rtree'], ...
         [stdir '\service',], [stdir '\stproc'], ...
         [stdir '\teletraffic'], [stdir '\waxman']);
